package com.huika.dealontop.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;


/**
 * Created by huhao on 2016/1/26.
 */
public class DealOnTopDBHelper extends SQLiteOpenHelper {

    private static final int VERSION = 1;

    public DealOnTopDBHelper(Context context) {
        super(context, "dealontop.db", null, VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table search_hot(_id integer primary key autoincrement," +
                "s_key char(10),s_time char(10),s_count integer)");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }

    public static String SEARCH_HOT = SearchHot.NAME;

    public interface SearchHot {
        String NAME = "search_hot";
        String KEY = "s_key";
        String COUNT = "s_count";
        String TIME = "s_time";
    }
}
